import { Pipe, PipeTransform } from '@angular/core';


@Pipe({
  name:'number'
})


export class NumberPipe implements PipeTransform{

	transform(val:any,point:number){
		let num = val || 0;
		let decimal = point || 0;
		let result = Number(num).toFixed(decimal);

		return result;
	}

}